﻿<Window x:Class="uTorrentNetClient.ModelDesign.NotifyWindow.View.NotifyWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:chartingprimitives="clr-namespace:System.Windows.Controls.DataVisualization.Charting.Primitives;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit" 
        ShowInTaskbar="False" WindowStyle="None" Background="Transparent" AllowsTransparency="True" WindowStartupLocation="Manual" VerticalAlignment="Bottom" HorizontalAlignment="Right"
        Height="100" Width="100" Topmost="True">
    <Grid>
        <c:Chart ToolTip="{Binding Path=ToolTip}">
            <c:Chart.Template>
                <ControlTemplate TargetType="c:Chart">
                    <Border Background="{TemplateBinding Background}"
                        BorderBrush="{TemplateBinding BorderBrush}"
                        BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>

                            <!--visualizationToolkit:Title Style="{TemplateBinding TitleStyle}"
                                                  Content="{TemplateBinding Title}" /-->

                            <Grid Margin="0,0,0,0"
                              Grid.Row="1">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="0" />
                                </Grid.ColumnDefinitions>
                                <!--<visualizationToolkit:Legend x:Name="Legend"
                                               Style="{TemplateBinding LegendStyle}"
                                               Grid.Column="1"
                                               Title="{TemplateBinding LegendTitle}" />-->

                                <chartingprimitives:EdgePanel x:Name="ChartArea"
                                               Style="{TemplateBinding ChartAreaStyle}" Background="Transparent">
                                    <Grid Style="{TemplateBinding PlotAreaStyle}"
                                      Canvas.ZIndex="-1" Background="Transparent" />

                                    <!-- I removed the border-->
                                    <!--<Border Canvas.ZIndex="10"
                                        BorderBrush="#FF919191"
                                        BorderThickness="1" />-->
                                </chartingprimitives:EdgePanel>
                            </Grid>

                        </Grid>
                    </Border>
                </ControlTemplate>
            </c:Chart.Template>
            <c:Chart.Series>
                <c:AreaSeries IsSelectionEnabled="True" Foreground="Green" ItemsSource="{Binding Path=SpeedDown}" IndependentValueBinding="{Binding Path=Time}" DependentValueBinding="{Binding Path=Speed}" />
                <c:AreaSeries IsSelectionEnabled="True" Foreground="Red" ItemsSource="{Binding Path=SpeedUp}" IndependentValueBinding="{Binding Path=Time}" DependentValueBinding="{Binding Path=Speed}" />
            </c:Chart.Series>
        </c:Chart>
    </Grid>
</Window>
